﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Zhao.Models.Entity
{
    /// <summary>
    /// 时间段价格表
    ///</summary>
    [SugarTable("FacilityTimePrice")]
    public class FacilityTimePrice
    {


        /// <summary>
        /// 备  注:主键，自增
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 备  注:场地类型 ID，标识该时间段属于哪种场地类型
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "FacilityType_id")]
        public int FacilityType_id { get; set; }

        /// <summary>
        /// 备  注:场馆 ID，标识具体的场馆
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "VenueID")]
        public Guid VenueID { get; set; }

        /// <summary>
        /// 备  注:开始时间，表示该定价时段的起始时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "StartTime")]
        public TimeOnly StartTime { get; set; }

        /// <summary>
        /// 备  注:结束时间，表示该定价时段的终止时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "EndTime")]
        public TimeOnly EndTime { get; set; }

        /// <summary>
        /// 备  注:该时间段对应的价格
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Price")]
        public decimal Price { get; set; }

        /// <summary>
        /// 备  注:是否为周末定价，1 表示周末价格，0 表示非周末价格
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "IsWeekend")]
        public bool IsWeekend { get; set; }
    }

}